// pages/secondhand-market/index.less
@card-radius: 18rpx;
@main-color: #303133;
@secondary-color: #717173;

.container {
  min-height: 100vh;
  padding-top: 0; // 由自定义导航栏占位
}

.card-box {
  background: #fff;
  border-radius: @card-radius;
  box-shadow: none;
  margin: 32rpx 24rpx 0 24rpx;
  padding: 32rpx 28rpx 32rpx 28rpx;
  min-height: 180rpx;

  .desc-textarea {
    width: 100%;
    min-height: 120rpx;
    font-size: 24rpx;
    color: @main-color;
    border: none;
    background: transparent;
    margin-bottom: 32rpx;
  }

  .img-upload {
    margin-top: 8rpx;
  }
}

.section-title {
  font-size: 26rpx;
  font-weight: 600;
  color: @main-color;
  margin: 40rpx 0 6rpx 36rpx;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18rpx 0;

  .label {
    font-size: 24rpx;
    color: @main-color;
    font-weight: normal;
    width: 100rpx;
  }

  .price-row {
    display: flex;
    align-items: center;

    .price {
      color: #53e18b;
      font-size: 30rpx;
    }
  }
}

.category-list {
  margin-top: 20rpx;
  display: flex;
  flex-wrap: wrap;
  gap: 10rpx;

  .cate-tag { // 基础样式
    border-radius: 10rpx;
    background: #f2f2f2;
    color: @secondary-color;
    transition: all 0.2s ease-in-out;
    font-size: 20rpx;
    padding: 20rpx;
    margin-bottom: 12rpx;
  }

  .cate-tag.active { // 选中样式，保持不变
    background-color: #53e18b;
    color: #fff; /* 推荐将文字颜色也改为白色，增强对比度 */
  }
}

.publish-btn {
  width: 80%;
  margin: 80rpx auto 0;
  text-align: center;
  border: none;
}
